from ronglian_sms_sdk import SmsSDK

accId = '2c94811c8b1e335b018c436a95f9436c'
accToken = '95b6682b8b6b48feba2804903673e666'
appId = '2c94811c8b1e335b018c436a976c4373'

def send_messaga(a,code):
    #tid 因为是测试只能填1 ，变量1表示发送提示的时间，变量2表示验证码
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = a

    datas = (code,'5')
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)
    return resp

